/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package iandtic.paydnie.adapters;

import iandtic.paydnie.dnie.CardListener;
import iandtic.paydnie.dnie.DNIe;
import iandtic.paydnie.ui.POSInterface;
import javax.smartcardio.CardException;


/**
 *
 * @author sergio
 */
public class Adapter{
    
    
    private POSInterface pos=null;
    public DNIe dnie=null;
    
    public Adapter(POSInterface aThis) throws CardException{
	pos=aThis; 

        //consult database with PIN+NIF
        //get result of accounts
        //show result of accounts
    }
    
    public void requestPIN(){    
        pos.requestPIN();
    }
    
    public void setPIN(int pin) {
        System.out.println("Escribiendo PIN "+pin+" en objeto DNIe");
        
    }
    public void showAccounts(String text){
        //pos.showAccounts(text);
    }


    public void sendConfirmationRequest(int parseInt) {
        throw new UnsupportedOperationException("Not yet implemented");
    }
     
}
